<div class="jobVersions index">
	<h2><?php __('Job Versions');?></h2>
  
  <?php if ($jobVersions):?>	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('job_id');?></th>
			<th><?php echo $this->Paginator->sort('version_num');?></th>
			<th><?php echo $this->Paginator->sort('status_id');?></th>
			<th><?php echo $this->Paginator->sort('author_id');?></th>
			<th><?php echo $this->Paginator->sort('job_type_id');?></th>
			<th><?php echo $this->Paginator->sort('created');?></th>
			<th><?php echo $this->Paginator->sort('modified');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($jobVersions as $jobVersion):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $jobVersion['JobVersion']['id']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($jobVersion['Job']['name'], array('controller' => 'jobs', 'action' => 'view', $jobVersion['Job']['id'])); ?>
		</td>
		<td><?php echo $jobVersion['JobVersion']['version_num']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($jobVersion['Status']['name'], array('controller' => 'statuses', 'action' => 'view', $jobVersion['Status']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($jobVersion['Author']['name'], array('controller' => 'authors', 'action' => 'view', $jobVersion['Author']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($jobVersion['JobType']['name'], array('controller' => 'job_types', 'action' => 'view', $jobVersion['JobType']['id'])); ?>
		</td>
		<td><?php echo $jobVersion['JobVersion']['created']; ?>&nbsp;</td>
		<td><?php echo $jobVersion['JobVersion']['modified']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $jobVersion['JobVersion']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $jobVersion['JobVersion']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $jobVersion['JobVersion']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $jobVersion['JobVersion']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
  
  <?php else:?><p>There are currently no records to display.  <?php echo $this->Html->link(__('Add one now', true), array('action' => 'add')); ?></p><?php endif; ?>  
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Job Version', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Jobs', true), array('controller' => 'jobs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Job', true), array('controller' => 'jobs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Statuses', true), array('controller' => 'statuses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Status', true), array('controller' => 'statuses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Authors', true), array('controller' => 'authors', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Author', true), array('controller' => 'authors', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Job Types', true), array('controller' => 'job_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Job Type', true), array('controller' => 'job_types', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Cuda Jobs', true), array('controller' => 'cuda_jobs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cuda Job', true), array('controller' => 'cuda_jobs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Job Version Names', true), array('controller' => 'job_version_names', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Job Version Name', true), array('controller' => 'job_version_names', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Param Fdks', true), array('controller' => 'param_fdks', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Param Fdk', true), array('controller' => 'param_fdks', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Param Sirts', true), array('controller' => 'param_sirts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Param Sirt', true), array('controller' => 'param_sirts', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Job Version Comments', true), array('controller' => 'job_version_comments', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Job Version Comment', true), array('controller' => 'job_version_comments', 'action' => 'add')); ?> </li>
	</ul>
</div>